import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 引入elementui
import ElementUI from 'element-ui'
// 引入样式
import 'element-ui/lib/theme-chalk/index.css'

import axiosPlugin from './utils/request.js'
import comPlugin from './components/index.js'
import eventBusPlugin from './utils/eventBus.js'
// 以vue插件的格式去安装ElementUI
Vue.use(ElementUI)

Vue.use(comPlugin)
Vue.use(axiosPlugin)
Vue.use(eventBusPlugin)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
// 技巧： 允许eslint临时开个后门，让我们来访问__proto__
// 下面一句代码，不受eslint控制
// eslint-disable-next-line
// console.log(vm.abc,vm.__proto__.abc, vm.__proto__ === Vue.prototype)
